package com.jigu.admin.service.impl;

import com.jigu.admin.mapper.console.AdminMapper;
import com.jigu.admin.model.console.Admin;
import com.jigu.admin.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by toretto on 2017/7/3.
 */
@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public Admin findUserInfoByName(String userName) {

        Admin admin = adminMapper.selectByUsername(userName);
        return admin;
    }
}
